getNoticeList()
function getNoticeList() {
  //发送请求请求用户信息
  $.ajax({
    url: 'http://localhost:8888/notice/info',
    method: 'GET',
    data: {},
    headers: {},
    success (res) {
      console.log(res.content[0].content)
      bindHtml(res)
    }
  })
}
function bindHtml(res) {
  console.log()
  if (res.content.length===0) {
    $('.empty').addClass('active')
    $('.display_list').removeClass('active')
    return
  }else{
    let str=``
    let count=0
    res.content.forEach(item=>{
      count++
      str+=`
        <li class='notice_list'>
          <div class="con">${count+'、'}${item.content}</div>
      `
    })
    str+=`
        </li>
      </ul>
    `
    $('.display_list').html(str)
  }
}
